package method.method1204;

public class name1 {
    private int age;
    private String name;
    public void setAge(int a ){
        if (a>100||a<0){
            System.out.println("年龄输入有误");
        }else{
            age=a;
        }
    }
    public int getAge(){
           return age;
    }
    public void setName(String str){
        name=str;
    }
    public String getName(){
        return name;
    }
}
